package org.dromara.xyyw.domain.bo;

import org.dromara.xyyw.domain.XyywProductCategory;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.util.Date;
import java.io.Serial;
import java.io.Serializable;

/**
 * 商品分类信息业务对象 xyyw_product_category
 *
 * @author yf
 * @date 2024-05-29
 */
@Data
@AutoMapper(target = XyywProductCategory.class, reverseConvertGenerate = false)
public class XyywProductCategoryBo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 分类ID
     */
    @NotNull(message = "分类ID不能为空", groups = {EditGroup.class})
    private Integer categoryId;

    /**
     * 分类名称
     */
    private String categoryName;

    /**
     * 父ID
     */
    @NotNull(message = "父ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer parentId;

}
